package com.roncoo.course.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.course.dao.EduCourseDao;
import com.roncoo.course.entity.EduCourse;
import com.roncoo.course.entity.ZoneCourse;
import com.roncoo.course.dao.ZoneCourseMapper;
import com.roncoo.course.service.ZoneCourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wdf
 * @since 2021-03-29
 */
@Service
public class ZoneCourseServiceImpl extends ServiceImpl<ZoneCourseMapper, ZoneCourse> implements ZoneCourseService {
    @Resource
    private ZoneCourseMapper zoneCourseMapper;
    @Override
    public IPage<ZoneCourse> findByPid(Page page, Integer id, ZoneCourse zoneCourse) {
        return zoneCourseMapper.findByPid(page,id,zoneCourse);
    }

    @Override
    public List<ZoneCourse> findAll(ZoneCourse zoneCourse) {
        return zoneCourseMapper.findAll(zoneCourse);
    }
}
